package com.fei.yygh.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fei.yygh.model.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface DitService extends IService<Dict> {

    //根据ID查询子数据
    List<Dict> findSonData(Long id);

    //导出字典数据
    void exportExcelData(HttpServletResponse response);

    //导入字典数据
    void importExcel(MultipartFile file);

    //根据name查询数据
    String getNameByValue(Long value);

    //根据编号查询信息
    String getNameByDictCode(String dictCode, Long value);
}
